export function lOption() {
  return {
    title: {
      text: '销售额趋势图',
      left: 'center',
      textStyle: {
        fontSize: 14
      }
    },
    xAxis: {
      type: 'category',
      data: []
    },
    yAxis: {
      type: 'value',
      name: '单位:元'
    },
    series: [
      {
        data: [],
        type: 'line',
        smooth: true,
        lineStyle: {
          color: '#ff5757'
        },
        itemStyle: {
          normal: {
            color: '#ff5757'
          }
        },
        areaStyle: {
          normal: {
            color: {
              x: 0,
              y: 0,
              x2: 0,
              y2: 1,
              colorStops: [
                {
                  offset: 0,
                  color: '#dc3881' // 0% 处的颜色
                }, {
                  offset: 1,
                  color: 'rgba(254,212,212,0)' // 100% 处的颜色
                }
              ],
              globalCoord: false // 缺省为 false
            }
          }
        }
      }
    ],
    tooltip: {
      show: true,
      trigger: 'axis'
    },
    grid: {
      left: '20%',
      right: '5%'
    }
  }
}
